package com.lg.erp.service.wangyu;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lg.erp.entity.wangyu.TDepartmentWy;
import com.lg.erp.entity.wangyu.WyTProduct;
import com.lg.erp.entity.wangyu.TPurchaseOrder;
import com.lg.erp.entity.wangyu.TStaffWy;

import java.util.List;

public interface ITPurchaseOrderService extends IService<TPurchaseOrder> {
    List<TStaffWy> getStaffs();

    List<TDepartmentWy> getDepartments();

    List<TDepartmentWy> getDepartmentNames();

    IPage<TPurchaseOrder> getOrderByPage(Page<TPurchaseOrder> page);

    IPage<WyTProduct> getAll(String id,Page<WyTProduct> page);

    void alterById(TPurchaseOrder order);

    void alterStatusById(TPurchaseOrder order);
}
